/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'
import i18n from '@/lang/index'

const chartRouter = {
  path: '/adminh5/chartmanage',
  component: Layout,
  redirect: '/adminh5/chartmanage/user',
  name: 'User',
  alwaysShow: true,
  meta: {
    title: i18n.t('Statistic'),
    icon: 'chart'
  },
  children: [
    {
      path: 'order',
      component: () => import('@/views/adminh5/chartmanage/order/index'),
      name: 'Order',
      meta: { title: i18n.t('Order'), icon: 'list' }
    },
    {
      path: 'customer',
      component: () => import('@/views/adminh5/chartmanage/customer/index'),
      name: 'customer',
      meta: { title: i18n.t('Customer'), icon: 'list' }
    },
    {
      path: 'sales',
      component: () => import('@/views/adminh5/chartmanage/sales/index'),
      name: 'Sales',
      meta: { title: i18n.t('SalesReport'), icon: 'list' }
    },
    {
      path: 'user',
      component: () => import('@/views/adminh5/chartmanage/user/index'),
      name: 'User',
      meta: { title: i18n.t('Member'), icon: 'list' }
    }

  ]
}
export default chartRouter
